home *** CD-ROM | disk | FTP | other *** search
/ Apple Developer Connection Student Program / ADC Tools Sampler CD Disk 3 1999.iso / Cool Demos, SDKs, & Tools / Demos⁄Tools⁄Offers / Eiffel for CW beta 3 / Example Projects / EiffelText / GXFile.h < prev    next >
Text File  |  1999-02-21  |  3KB  |  98 lines

  1. /*
  2.     File:        GXFile.h
  3.  
  4.     Contains:    GX print file support for simple text application
  5.  
  6.     Version:    SimpleText 1.4 or later
  7.  
  8. ** Copyright 1993-1996 Apple Computer. All rights reserved.
  9. **
  10. **    You may incorporate this sample code into your applications without
  11. **    restriction, though the sample code has been provided "AS IS" and the
  12. **    responsibility for its operation is 100% yours.  However, what you are
  13. **    not permitted to do is to redistribute the source as "DSC Sample Code"
  14. **    after having made changes. If you're going to re-distribute the source,
  15. **    we require that you make it clear in the source that the code was
  16. **    descended from Apple Sample Code, but that you've made changes.
  17.  
  18. **  YES - THIS HAS BEEN CHANGED FOR EIFFEL TEXT.
  19. */
  20.  
  21. #include "EiffelText.h"
  22.  
  23. #define kGotoPageDialogID         kGXBaseID
  24.  
  25. #define kLabelString            kGXBaseID
  26. #define kPageControlStrings        kGXBaseID+1
  27.     #define iGoToPageString            1
  28.     
  29. #define kPageControlPlain        kGXBaseID
  30. #define kPageControlRight        kPageControlPlain+1
  31. #define kPageControlLeft        kPageControlPlain+2
  32.  
  33. #define kZoomControlPlain        kGXBaseID+3
  34. #define kZoomControlRight        kZoomControlPlain+1
  35. #define kZoomControlLeft        kZoomControlPlain+2
  36.  
  37. #define kGXPopUpMenu            kGXBaseID
  38.     #define i50                        1
  39.     #define i100                    2
  40.     #define i112                    3
  41.     #define i150                    4
  42.     #define i200                    5
  43.     #define i400                    6
  44.     #define iScaleToFit                8
  45.     #define iDontShowMargins        10
  46.     
  47. #define kGXToolMenu                kGXBaseID+1
  48.     #define kIconBase                256
  49.     #define kSelectionTool            1
  50.     #define kRedMarkerTool            2
  51.  
  52. #ifndef REZ
  53.     
  54.     struct GXDataRecord
  55.         {
  56.         WindowDataRecord        w;
  57.         
  58.         gxViewPort                parentViewPort;        // viewPort in the window
  59.         gxViewPort                childViewPort;        // viewPort inset from the other
  60.         
  61.         gxPrintFile                thePrintFile;
  62.         short                    printFileRefNum;
  63.         
  64.         long                    numberOfPages;        // # of pages in this document
  65.         long                    currentPage;        // currently visible page #
  66.         Fixed                    zoomFactor;            // current zoom factor
  67.         Boolean                    dontShowMargins;    // don't show page margins
  68.  
  69.         // mode when user clicks in content
  70.         short                    contentClickMode;
  71.  
  72.         // current selection information
  73.         Rect                    selectionRectangle;
  74.         short                    patternPhase;
  75.         
  76.         // filled in during drag to avoid multiple shape traversals
  77.         gxShape                    tempDragShape;
  78.         
  79.         // current page and format information
  80.         gxShape                    currentPageShape;
  81.         gxFormat                currentPageFormat;
  82.  
  83.         // filled in during shape traverse to locate the desired starting "index"
  84.         long                    tempSearchIndex;
  85.         
  86.         // fields for currently selected item in the search
  87.         long                     currentShapeIndex;
  88.         long                    currentShapeStart;
  89.         long                    currentShapeEnd;
  90.         gxShape                 currentSelectionShape;
  91.         gxMapping                currentSelectionMapping;
  92.         
  93.         // fields for annotation pictures
  94.         gxShape                    ** pageAnnotations;
  95.         };
  96.     typedef struct GXDataRecord GXDataRecord, *GXDataPtr;    
  97. #endif
  98.